package com.fcscs.cservice.ws.client.reservationservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.reservationservice.GetMessagesRequest;
import com.fcscs.cservice.ws.schema.reservationservice.GetMessagesResponse;

public class GetMessagesClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetMessagesClient.class);

	public GetMessagesResponse getMessages(GetMessagesRequest req) {
		GetMessagesResponse resp = (GetMessagesResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getMessageList().size());
		return resp;
	}

}
